<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="js/vue.js"></script>
</head>
<body>
<div id="app">
    <p> {{msg}} </p>
</div>


</body>
<script>
 let app = new Vue({
    el: '#app',
    data: {
        msg: 'Hello Vue'
    },
    beforeCreate: function() {
        console.log('beforeCreated');
        console.log(this);
    },
    created: function() {
        console.log('created');
        console.log(this);
    },
    beforeMount: function() {
        console.log('beforeMount');
        console.log(this);
    },
    mounted: function() {
        console.log('mounted');
        console.log(this);
    },
    beforeUpdate: function() {
        console.log('beforeUpdate');
        console.log(this);
    },
    updated: function() {
        console.log('updated');
        console.log(this);
    },
    beforeDestroy: function() {
        console.log('beforeDestory');
        console.log(this);
    },
    destroyed: function() {
        console.log('destroyed');
        console.log(this);
    }
});


</script>
</html>
